package net.aiion.weave.impl.ui;

import net.aiion.weave.spi.cards.annotations.Access;
import net.aiion.weave.spi.cards.annotations.Property;
import net.aiion.weave.spi.naming.annotations.Named;
import net.aiion.weave.spi.naming.annotations.NotScoped;
import net.aiion.weave.spi.ui.PushButton;
import net.aiion.weave.spi.ui.annotations.Binds;

@NotScoped
@Named("push-button")
public class PushButtonImpl extends AbstractComponent implements PushButton
{
    @Binds("label")
    @Property(Access.READ_ONLY)
    private String label;

    public PushButtonImpl() {
    }

    @Override
    public void setLabel(final String aLabel) {
        label = aLabel;
    }

    @Override
    public String getLabel() {
        return label;
    }
}
